<?php

class ArticleRecommendationLogTable extends Doctrine_Table
{
  static public $status = array(
    '10' => '等待审核', 
    '20' => '通过审核'
  );

  public function getBackendListQuery(Doctrine_Query $query)
  {
    $rootAlias = $query->getRootAlias();

    return $query->leftJoin("$rootAlias.article a")
      ->leftJoin("$rootAlias.proposer p");
  }
}
